package com.monlyu.vo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.monlyu.annotation.Comment;

/*******************************************************************************
 * 
 * <b>功能描述☞</b>新闻播出差错管理<br>
 * 
 * <b>开发公司☞</b>重庆唯尼科技有限公司<br>
 * <b>版权☞</b>本文件归重庆唯尼科技有限公司所有<br>
 * <b>项目名☞</b>news<br>
 * <b>文件路径☞</b>com.monlyu.vo.BroadcastError.java<br>
 * <b>开发日期☞</b>2010-2-22 <br>
 * 
 * @author chendan
 * @since JDK 5
 * @version 1.0.8
 * 
 ******************************************************************************/
@Entity(name = "t_broadcastError")
public class BroadcastError extends BaseVo {
	@Id
	@Column(name = "b_id")
	@Comment(common = "编号")
	private Long id;

	@ManyToOne
	@JoinColumn(name = "b_user")
	@Comment(common = "人员")
	private User user;

	@Column(name = "b_errorType")
	@Comment(common = "错误类型")
	private Long errorType;

	@Column(name = "b_detail")
	@Comment(common = "描述")
	private String detail;

	@Column(name = "b_date")
	@Comment(common = "发生时间")
	private Date date;

	@ManyToOne
	@JoinColumn(name = "b_recorder")
	@Comment(common = "记录人员")
	private User recorder;

	@Column(name = "b_recordTime")
	@Comment(common = "记录日期")
	private Date recordTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Long getErrorType() {
		return errorType;
	}

	public void setErrorType(Long errorType) {
		this.errorType = errorType;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public User getRecorder() {
		return recorder;
	}

	public void setRecorder(User recorder) {
		this.recorder = recorder;
	}

	public Date getRecordTime() {
		return recordTime;
	}

	public void setRecordTime(Date recordTime) {
		this.recordTime = recordTime;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}
}
